package cn.edu.scau.cmi.wurihua.entity;

import java.util.List;

public class Teacher {
	private int id;
	private String name;
	private List<Student> sList;
	public Teacher(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Student> getsList() {
		return sList;
	}
	public void setsList(List<Student> sList) {
		this.sList = sList;
	}
	@Override
	public String toString() {
		return "Teacher [id=" + id + ", name=" + name + ", sList=" + sList + "]";
	}
	
	
}
